#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h> 

int main()
{
	int n = 0;
	scanf("%d", &n);
	int arr[100][100] = { 1 };
	for (int i = 1; i < 100; i++)
	{
		arr[i][0] = arr[i - 1][0] + i;
	}
	int m = 2;
	for (int i = 0; i < 100; i++)
	{
		int temp = m;
		for (int j = 1; j < 100; j++)
		{
			arr[i][j] = arr[i][j - 1] + m;
			m++;
		}
		m = temp + 1;
	}
	int temp = n;
	for (int i = 0; i < n; i++)
	{
		for (int j = 0; j < temp; j++)
		{
			printf("%d ", arr[i][j]);
		}
		temp--;
		printf("\n");
	}

	return 0;
}